﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CognisessDA.CareerPosition>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Create</legend>
        <div class="editor-label">
            <label for="Username">
                Position Name</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Name)%>
            <%= Html.ValidationMessageFor(model => model.Name)%>
        </div>
        <div class="editor-label">
            <label for="PeopleNeeded">
                People Needed</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.PeopleNeed)%>
        </div>
        <div class="editor-label">
            <label for="Description">
                Description</label>
        </div>
        <div class="editor-field">
            <%= Html.TextAreaFor(model => model.Description, new { style="height:200px;width:400px;" })%>
        </div>
        <div class="editor-label">
            <label for="Username">
                Is Valid</label>
        </div>
        <div class="editor-field">
            <%= Html.DropDownListFor(model => model.IsVaild, (IEnumerable<SelectListItem>)ViewData["IsValid"])%>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
